/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.edu.univalle.logica;

import co.edu.univalle.modelo.TiposDocumentos;
import co.edu.univalle.persistencia.IClienteDAO;
import co.edu.univalle.persistencia.ITiposDocumentosDAO;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author CQ 43 - 450LA
 */
@Stateless
public class TiposDocumentosLogica implements TiposDocumentosLogicaLocal {

@EJB
private ITiposDocumentosDAO tiposDocumentos;

    @Override
    public TiposDocumentos consultarPorCodigo(Long codigo) throws Exception {
      return tiposDocumentos.consultarPorCodigo(codigo);
    }
    

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    @Override
    public List<TiposDocumentos> consultar() throws Exception {
   return  tiposDocumentos.consultar();
    }
}
